<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 润
  Date: 2021/7/27
  Time: 23:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1 align="center">此班级学生信息</h1>
<div><a href="addStudent.jsp?classId=${requestScope.classId}">添加学生</a></div>
<div align="center">
    <table>
        <tr>
            <th>学生名字</th>
        </tr>
        <c:forEach items="${requestScope.students}" var="Student"><br>
            <tr>
                <td><a href="StudentServlet?action=queryMyCourses&sid=${Student.id}">${Student.name}</a></td>
                <td><a href="StudentServlet?action=queryOneStudent&id=${Student.id}">修改</a></td>
                <td><a href="StudentServlet?action=deleteStudent&id=${Student.id}">删除</a> </td>
            </tr>
        </c:forEach>
    </table>
</div>

</body>
</html>
